package ch.hearc.coursJava.kitBase.de.wrapperPerso;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class IntegersTest
	{

	/*------------------------------------------------------------------*\
	 |*							Constructeurs							*|
	 \*------------------------------------------------------------------*/

	@Before
	public void before()
		{
		// rien
		}

	@After
	public void after()
		{
		// rien
		}

	/*------------------------------------------------------------------*\
	 |*							Methodes Public							*|
	 \*-----------------------------------------------------------------*/

	@Test
	public void testEquals()
		{
		Integers a = new Integers(5);
		Integers b = new Integers(6);

		assertFalse(a.equals(b));

		a.setValeur(6);

		assertTrue(a.equals(b));
		}

	@Test
	public void testCompareTo()
		{
		Integers a = new Integers(5);
		Integers b = new Integers(6);

		assertTrue(a.compareTo(b) == -1);

		a.setValeur(6);

		assertTrue(a.compareTo(b) == 0);

		a.setValeur(7);

		assertTrue(a.compareTo(b) == 1);
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	}
